import service from '@/utils/request'

// @Tags DeployAuthorized
// @Summary 创建授权管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DeployAuthorized true "创建授权管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /deployAuthorized/createDeployAuthorized [post]
export const createDeployAuthorized = (data) => {
  return service({
    url: '/deployAuthorized/createDeployAuthorized',
    method: 'post',
    data
  })
}

// @Tags DeployAuthorized
// @Summary 删除授权管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DeployAuthorized true "删除授权管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /deployAuthorized/deleteDeployAuthorized [delete]
export const deleteDeployAuthorized = (params) => {
  return service({
    url: '/deployAuthorized/deleteDeployAuthorized',
    method: 'delete',
    params
  })
}

// @Tags DeployAuthorized
// @Summary 批量删除授权管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除授权管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /deployAuthorized/deleteDeployAuthorized [delete]
export const deleteDeployAuthorizedByIds = (params) => {
  return service({
    url: '/deployAuthorized/deleteDeployAuthorizedByIds',
    method: 'delete',
    params
  })
}

// @Tags DeployAuthorized
// @Summary 更新授权管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DeployAuthorized true "更新授权管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /deployAuthorized/updateDeployAuthorized [put]
export const updateDeployAuthorized = (data) => {
  return service({
    url: '/deployAuthorized/updateDeployAuthorized',
    method: 'put',
    data
  })
}

// @Tags DeployAuthorized
// @Summary 用id查询授权管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.DeployAuthorized true "用id查询授权管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /deployAuthorized/findDeployAuthorized [get]
export const findDeployAuthorized = (params) => {
  return service({
    url: '/deployAuthorized/findDeployAuthorized',
    method: 'get',
    params
  })
}

// @Tags DeployAuthorized
// @Summary 分页获取授权管理列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取授权管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /deployAuthorized/getDeployAuthorizedList [get]
export const getDeployAuthorizedList = (params) => {
  return service({
    url: '/deployAuthorized/getDeployAuthorizedList',
    method: 'get',
    params
  })
}
